"""sanhangbei URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.views import static
from django.conf import settings
from django.contrib import admin
from django.urls import path
from django.conf.urls import url

from sanhangbei import settings
from login_auth.views import *
from upload_file.views import *
from project_manage.views import *

urlpatterns = [
    path('admin/', admin.site.urls),
    path('api/v1/auth', auth),
    path('api/v1/logout', logout),
    path('api/v1/parseForm', parseForm),
    path('api/v1/addProject', addProject),
    path('api/v1/editProject', editProject),
    path('api/v1/getProjects', getProjects),
    path('api/v1/getProjectDetail', getProjectDetail),
    path('api/v1/getTeachers', getTeachers),
    path('api/v1/getTeacherDetail', getTeacherDetail),
    path('api/v1/getStudents', getStudents),
    path('api/v1/getStudentDetail', getStudentDetail),
    path('api/v1/rawSQL', rawSQL),
    path('api/v1/getStudentDeleteInfo', getStudentDeleteInfo),
    path('api/v1/deleteStudent', deleteStudent),
    path('api/v1/getTeacherDeleteInfo', getTeacherDeleteInfo),
    path('api/v1/deleteTeacher', deleteTeacher),
    path('api/v1/combineAdd', combineAdd),
    path('api/v1/combineDelete', combineDelete),
    path('api/v1/changeStudent', changeStudent),
    path('api/v1/changeTeacher', changeTeacher),
    path('api/v1/getBackup', getBackup),
    path('api/v1/getBackupList', getBackupList),
    path('api/v1/makeBackup', makeBackup),
    path('api/v1/get_credential_demo', get_credential_demo),
    path('api/v1/deleteProject', deleteProject),
    path('api/v1/importData', importData),
    # url(r'^static/(?P<path>.*)$', 'django.views.static.serve',
    #     {'document_root': settings.STATIC_ROOT}),
]
